function selectCategory(iCategoryID)
{
	window.location.href="./?controller=content&task=listing&category_id="+iCategoryID;
}



function setFrontpage(iContentID)
{
	if(g_iFrontpageID == iContentID) return;
	$.ajax({
		type: "GET",
		url: "./?controller=content&task=ajax_set_frontpage&content_id="+iContentID,
		dataType: "json",
		success: function(json){
			if(json.status=="0")
			{
				if(g_iFrontpageID !=0) $("#frontpage-"+g_iFrontpageID).attr("class", "frontpage-0");
				g_iFrontpageID = iContentID;
				$("#frontpage-"+g_iFrontpageID).attr("class", "frontpage-1");
			}
			else
			{
				alert(json.description);
			}
		}
	});	
	
}